﻿using PortaCapena.OdooJsonRpcClient;
using PortaCapena.OdooJsonRpcClient.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace OdooRpcClient
{
    public class OdooRequest
    {
        public static bool ExistentialModel(string modelName)
        {
            string className = Converters.ModelMapper.GetModelName(modelName)[0];
            if (className == null)
            {
                return false;
            }
            else
            {
                return true;
            }
        }

        //public static dynamic GetDataByContext(int active_id, List<string> active_domain, List<int> active_ids, Type type, List<int> allowed_company_ids, string lang, string tz, int uid, OdooConfig config)
        //{
        //    //object obj = Activator.CreateInstance(type, true); 
        //    //var repository = new OdooRepository<IOdooModel((OdooConfig)obj)>(config);
        //}
    }
}
